package com.example.demo.service.impl;

import com.example.demo.dubbo.DubboUserService;
import com.example.demo.model.User;
import com.example.demo.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @DubboReference
    private DubboUserService dubboUserService;


    public User findUser(User record){
        return dubboUserService.findUser(record);
    }

    public int countUserByName(String name){
        return dubboUserService.countUserByName(name);
    }

    public List<User> findUserList(User record){
        return dubboUserService.findUserList(record);
    }


}
